package com.kma.summer2012.client.events;

import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;


public class ShowPreloaderEvent extends GwtEvent<ShowPreloaderEvent.ShowPreloaderEventHandler> {

    private static Type<ShowPreloaderEventHandler> TYPE = new Type<ShowPreloaderEventHandler>();

    public ShowPreloaderEvent() {

    }


    public interface ShowPreloaderEventHandler extends EventHandler {
        void onShowPreloader(ShowPreloaderEvent event);
    }

    @Override
    public Type<ShowPreloaderEventHandler> getAssociatedType() {
        return TYPE;
    }

    public static Type<ShowPreloaderEventHandler> getType() {
        return TYPE;
    }

    @Override
    protected void dispatch(ShowPreloaderEventHandler handler) {
        handler.onShowPreloader(this);
    }
}

